from django.urls import path,re_path
from goods.views import IndexView, DetailView, ListView

app_name = 'goods'
urlpatterns = [
    path('', IndexView.as_view(), name ='index1'),
    path('index', IndexView.as_view(), name ='index'),
    re_path('^goods/detail/(?P<goods_id>\d+)$', DetailView.as_view(), name ='detail'),
    re_path('^goods/list/(?P<type_id>\d)/(?P<page>\d)$', ListView.as_view(), name ='list'),
]
